using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Security.Entity
{
    [AttributeUsage(AttributeTargets.Class)]
    public class AuthenticationPageAttribute : Attribute
    {
        string resName;
        string errorUrl;

        protected AuthenticationPageAttribute() { }

        public AuthenticationPageAttribute(string resName)
            : this(resName, null)
        {
        }

        public AuthenticationPageAttribute(string resName, string errorUrl)
        {
            this.resName = resName;

            this.errorUrl = errorUrl;
        }

        public string ResName
        {
            get { return resName; }
            set { resName = value; }
        }
        public string ErrorUrl
        {
            get { return errorUrl; }
            set { errorUrl = value; }
        }

    }
}
